﻿<%@ Page Title="Admin eventi" Language="VB" MasterPageFile="~/Site.master" AutoEventWireup="false"
    CodeFile="AdminAggiungiEvento.aspx.vb" Inherits="AdminAggiungiEvento" ValidateRequest="false" %>

<%@ Register Src="WebUserControls/CntlData.ascx" TagName="CntlData" TagPrefix="uc1" %>
<%@ Register Src="WebUserControls/CntlAdmin.ascx" TagName="CntlAdmin" TagPrefix="uc2" %>
<asp:Content ID="Content1" ContentPlaceHolderID="HeadContent" runat="Server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="Server">
    <script>
        // Load the editor resource
        dojo.require("dojo.parser");
        dojo.require("dijit.Editor");
        dojo.require("dojox.editor.plugins.AutoUrlLink");
        dojo.require("dojox.editor.plugins.PasteFromWord");
        dojo.require("dojox.editor.plugins.TextColor");
        dojo.require("dijit._editor.plugins.FontChoice");
    </script>
    <link rel="stylesheet" href="Scripts/dojo/dijit/themes/soria/soria.css" type="text/css" />
    <link rel="stylesheet" href="Scripts/dojo/dojox/editor/plugins/resources/css/PasteFromWord.css"
        type="text/css" />
    <link rel="stylesheet" href="Scripts/dojo/dojox/editor/plugins/resources/css/TextColor.css"
        type="text/css" />
    <asp:ScriptManager ID="ScriptManager1" runat="server">
    </asp:ScriptManager>
    <div>
        Inserimento nuovo evento<br />
        <asp:LinkButton ID="LinkButton1" runat="server">Logout</asp:LinkButton>
        <br />
        &nbsp;
        <asp:Label ID="LblCerca" runat="server" Text="Testo da cercare"></asp:Label>
        <asp:TextBox ID="TbToSearch" runat="server"></asp:TextBox>
        <asp:Button ID="BtnCerca" runat="server" Text="Cerca" />
        <asp:Button ID="BtnMostratutto" runat="server" Text="Mostra tutto" />
        <asp:GridView ID="GVEventi" runat="server" AutoGenerateColumns="False" AllowPaging="True"
            OnPageIndexChanging="GVEventi_PageIndexChanging">
            <Columns>
                <asp:BoundField DataField="PK_Evento" HeaderText="PK_evento" />
                <asp:BoundField DataField="NomeEvento" HeaderText="Nome Evento" />
                <asp:BoundField DataField="DataInizio" HeaderText="DataInizio" />
                <asp:BoundField DataField="DataFine" HeaderText="Data fine" />
                <asp:ButtonField ButtonType="Button" CommandName="CaricaRiga" Text="Carica riga" />
                <asp:ButtonField ButtonType="Button" CommandName="EliminaRiga" Text="Elimina" />
            </Columns>
        </asp:GridView>
        <asp:Button ID="BtnSvuota" runat="server" Text="Svuota campi" />
    </div>
    <table>
        <tr>
            <td>
                <asp:ListBox ID="LBTarget" runat="server" SelectionMode="Multiple" ViewStateMode="Enabled">
                </asp:ListBox>
            </td>
            <td>
                <asp:DropDownList ID="DDLCategoria" runat="server">
                    <asp:ListItem Selected="True" Value="100">Generico</asp:ListItem>
                    <asp:ListItem Value="1">Concerto</asp:ListItem>
                    <asp:ListItem Value="2">Festa</asp:ListItem>
                    <asp:ListItem Value="3">Discoteca</asp:ListItem>
                    <asp:ListItem Value="4">Fiera</asp:ListItem>
                    <asp:ListItem Value="5">Sagra</asp:ListItem>
                    <asp:ListItem Value="6">Gita</asp:ListItem>
                    <asp:ListItem Value="7">Gratis</asp:ListItem>
                    <asp:ListItem Value="8">Mostra</asp:ListItem>
                </asp:DropDownList>
            </td>
            <td colspan="2">
                <asp:Label ID="LblPriorita" runat="server" Text="Priorita"></asp:Label>&nbsp;<asp:TextBox
                    ID="TBPriorita" runat="server">100</asp:TextBox>
            </td>
        </tr>
        <tr>
            <td colspan="2">
                <asp:Label ID="LblNomeEvento" runat="server" Text="Nome Evento"></asp:Label>
                <asp:TextBox ID="TBNomeEvento" runat="server" Width="300px"></asp:TextBox>
            </td>
            <td colspan="2">
                <asp:UpdatePanel ID="UPGratuito" runat="server">
                    <ContentTemplate>
                        <asp:Label ID="LblIngressoLibero" runat="server" Text="Ingresso libero"></asp:Label>
                        <asp:RadioButtonList ID="RblGratuito" runat="server" AutoPostBack="True" RepeatDirection="Horizontal"
                            RepeatLayout="Flow">
                            <asp:ListItem Value="1">Si</asp:ListItem>
                            <asp:ListItem Value="0" Selected="True">No</asp:ListItem>
                        </asp:RadioButtonList>
                        &nbsp;
                        <asp:Label ID="LblPrezzo" runat="server" Text="Prezzo Evento"></asp:Label>
                        <asp:TextBox ID="TBPrezzo" runat="server">
                        </asp:TextBox>
                        <br />
                    </ContentTemplate>
                </asp:UpdatePanel>
            </td>
        </tr>
        <tr>
            <td colspan="4">
                <div class="thundra">
                    <asp:Label ID="LblDescrizione" runat="server" Text="Descrizione Evento"></asp:Label>
                    <textarea runat="server" id="TBDescrizione" dojotype="dijit.Editor" data-dojo-props="extraPlugins:['autourllink', 'cut','copy','paste', 'pastefromword', 'foreColor', 'hiliteColor', 'fontName', 'fontSize']"
                        rows="20" cols="80">

                </textarea>
                </div>
            </td>
        </tr>
        <tr>
            <td colspan="4">
                <asp:UpdatePanel ID="UPOrganizzatore" runat="server">
                    <ContentTemplate>
                        <asp:DropDownList ID="DDLOrganizzatore" runat="server" AutoPostBack="True" ViewStateMode="Enabled">
                        </asp:DropDownList>
                        <br />
                        <asp:Label ID="LblLink" runat="server" Text="Link sito evento"></asp:Label>
                        <asp:TextBox ID="TBLink" runat="server" Width="600px">http://</asp:TextBox>
                    </ContentTemplate>
                </asp:UpdatePanel>
            </td>
        </tr>
        <tr>
            <td colspan="4">
                <uc1:CntlData ID="CntlDateEvento" runat="server" />
            </td>
        </tr>
        <tr>
            <td>
                <asp:CheckBox ID="CbCopiaOrganizzatore" runat="server" Checked="true" Text="Copia da indirizzo organizzatore"
                    TextAlign="Left" />
            </td>
            <td>
                <asp:Label ID="LblStrada" runat="server" Text="Strada"></asp:Label>
                <asp:TextBox ID="TBStrada" runat="server" Width="300px"></asp:TextBox>
            </td>
            <td>
                <asp:Label ID="LblCivico" runat="server" Text="Civico"></asp:Label>
                <asp:TextBox ID="TBCivico" runat="server"></asp:TextBox>
            </td>
            <td>
                <asp:Label ID="LblComune" runat="server" Text="Comune"></asp:Label>
                <asp:TextBox ID="TBComune" runat="server" Width="300px"></asp:TextBox>
            </td>
        </tr>
        <tr>
            <td>
                <asp:Label ID="LblCap" runat="server" Text="CAP"></asp:Label>
                <asp:TextBox ID="TBCAP" runat="server"></asp:TextBox>
            </td>
            <td>
                <asp:Label ID="LblProvincia" runat="server" Text="PROV"></asp:Label>
                <asp:TextBox ID="TBProvincia" runat="server"></asp:TextBox>
            </td>
            <td colspan="2">
                <asp:Label ID="LblPresso" runat="server" Text="Presso"></asp:Label>
                <asp:TextBox ID="TBPresso" runat="server" Width="400px"></asp:TextBox>
            </td>
        </tr>
        <tr>
            <td>
                <asp:CheckBox ID="CBIscrizione" runat="server" Text="Iscrizione all'evento prevista" />
            </td>
            <td colspan="3">
                <uc1:CntlData ID="CntlDateIscrizioni" runat="server" />
            </td>
        </tr>
        <tr>
            <td colspan="4">
                <asp:Label ID="LblDettagliIscrizione" runat="server" Text="Dettagli iscrizione"></asp:Label>
                <asp:TextBox ID="TBDettagliIscrizione" runat="server" Height="150px" TextMode="MultiLine"
                    Width="600px"></asp:TextBox>
            </td>
        </tr>
        <tr>
            <td>
                <asp:Label ID="Label1" runat="server" Text="Modulo iscrizione"></asp:Label>
            </td>
            <td>
                <asp:FileUpload ID="FUModuloIscrizione" runat="server" />
            </td>
            <td colspan="2">
                <asp:Label ID="LblUploadedIscrizione" runat="server"></asp:Label>
            </td>
        </tr>
        <tr>
            <td>
                <asp:Label ID="LblCaricaBrochure" runat="server" Text="Brochure dell'evento"></asp:Label>
            </td>
            <td>
                <asp:FileUpload ID="FUBrochure" runat="server" ViewStateMode="Enabled" />
            </td>
            <td colspan="2">
                <asp:Label ID="LblUploadedBrochure" runat="server"></asp:Label>
            </td>
        </tr>
        <tr>
            <td>
                <asp:Label ID="LblImmagineEvento" runat="server" Text="Immagine dell'evento"></asp:Label>
            </td>
            <td>
                <asp:FileUpload ID="FUImmagineEvento" runat="server" />
            </td>
            <td colspan="2">
                <asp:Label ID="LblUploadedImmagine" runat="server"></asp:Label>
            </td>
        </tr>
        <tr>
            <td colspan="2">
                <asp:Button ID="BTNInserisci" runat="server" Text="Aggiungi come nuovo evento" />
            </td>
            <td colspan="2">
                <asp:Button ID="BtnSalva" runat="server" Text="Salva modifiche all'evento caricato" />
            </td>
        </tr>
    </table>
    <hr />
    <uc2:CntlAdmin ID="CntlAdmin1" runat="server" />
</asp:Content>
